package com.uzai.console.entity.es;

import com.uzai.common.utils.EsIndexName;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * 企业微信通讯录
 * @Auther: jianghan
 * @Date: 2021/11/19 11:33
 * @Description:
 */
@Document(indexName = EsIndexName.UZAI_WORKWX_CONTACTS, shards = 3, replicas = 2)
public class EsWorkWxContacts {
    @Id
    @Field(type = FieldType.Keyword)
    private String id;
    @Field(type = FieldType.Long)
    private Long merId;
    @Field(type = FieldType.Keyword)
    private String deviceId;
    @Field(type = FieldType.Long)
    private Long deviceUniqueId;
    @Field(type = FieldType.Integer)
    private Integer deviceType;
    @Field(type = FieldType.Keyword)
    private String wxid;
    @Field(type = FieldType.Text)
    private String userName;
    @Field(type = FieldType.Text)
    private String remark;
    @Field(type = FieldType.Keyword)
    private String himg;
    @Field(type = FieldType.Integer)
    private Integer gender;
    @Field(type = FieldType.Keyword)
    private String mobile;
    @Field(type = FieldType.Integer)
    private Integer userType;
    @Field(type = FieldType.Integer)
    private int lastGroupSendTime;
    @Field(type = FieldType.Long)
    private Long version = 0L;
    @Field(type = FieldType.Integer)
    private int createTime;
    @Field(type = FieldType.Integer)
    private int updateTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Long getMerId() {
        return merId;
    }

    public void setMerId(Long merId) {
        this.merId = merId;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public Long getDeviceUniqueId() {
        return deviceUniqueId;
    }

    public void setDeviceUniqueId(Long deviceUniqueId) {
        this.deviceUniqueId = deviceUniqueId;
    }

    public Integer getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(Integer deviceType) {
        this.deviceType = deviceType;
    }

    public String getWxid() {
        return wxid;
    }

    public void setWxid(String wxid) {
        this.wxid = wxid;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getHimg() {
        return himg;
    }

    public void setHimg(String himg) {
        this.himg = himg;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public int getLastGroupSendTime() {
        return lastGroupSendTime;
    }

    public void setLastGroupSendTime(int lastGroupSendTime) {
        this.lastGroupSendTime = lastGroupSendTime;
    }

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

    public int getCreateTime() {
        return createTime;
    }

    public void setCreateTime(int createTime) {
        this.createTime = createTime;
    }

    public int getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(int updateTime) {
        this.updateTime = updateTime;
    }

}
